#ifndef __MY_AND_H__
#define __MY_AND_H__
#
# //////////////////////////////////////////////////////////////////////////
# // 2013/01/07
# // xushediao1987@163.com
# //
# // MY_AND(x, y) 当x, y 都不为0的时候返回1
# // MY_AND(0, 1) ==> 0
# // MY_AND(0, 0) ==> 0
# // MY_AND(1, 1) ==> 1
# //
# //////////////////////////////////////////////////////////////////////////
#
#include "BOOL.h"
#
#
#define MY_AND(x, y) MY_AND_I(x,y)
#define MY_AND_I(x, y) MY_BIT_AND(MY_BOOL(x),MY_BOOL(y))
#
#define MY_BIT_AND(x, y) MY_BIT_AND_I(x, y)
#define MY_BIT_AND_I(x, y) MY_BIT_AND_ ## x ## y
#
#define MY_BIT_AND_00 0
#define MY_BIT_AND_01 0
#define MY_BIT_AND_10 0
#define MY_BIT_AND_11 1
#
#
#endif
